<%@include file="taglib_includes.jsp" %>
<html>
<head>
<title><spring:message code="Search.Faculty.Title"></spring:message></title>
</head>
<body>
<table  bgcolor="white" width="800" height="15" align="center" style="border-collapse: collapse;" border="1" bordercolor="#006699" >
	<form:form action="searchFaculity" method="post" commandName="search_faculity">
	<tr align="center">
		<td align="center" style="background-color: lightblue"><h3><br></h3><h3>Search Faculty</h3></td>
	</tr>
	<tr >
					<td>Enter Faculty Name</td>
					<tr><td><form:input path="searchKey"/>
					&nbsp;&nbsp;<input type="submit" value="Search"/></td></tr>
					
				
	
				<tr>
		<td>
		
			<table style="border: 1px solid; width: 100%; text-align:center">
				
	<thead style="background:#d3dce3">
		<tr>
			<th>Faculty ID</th>
			<th>Faculty Name</th>
			<th>Last Name</th>
			<th>Designation</th>
			<th>Department ID</th>
			<th>Role ID</th>
			<th>DOJ</th>
		</tr>
	</thead>
	<tbody style="background:#ccc">
		<c:forEach var="facultyList" items="${facultyList}">
		<tr>
			<td><c:out value="${facultyList.facultyId}"></c:out></td>
			<td><c:out value="${facultyList.firstName}"></c:out></td>
			<td><c:out value="${facultyList.lastName}"></c:out></td>
			<td><c:out value="${facultyList.designation}"></c:out></td>
			<td><c:out value="${facultyList.deptId}"></c:out></td>
			<td><c:out value="${facultyList.roleId}"></c:out></td>
			<td><c:out value="${facultyList.doj}"></c:out></td>
		</tr>
		</c:forEach>
	</tbody>	
	
	</table>
	
		</td>
	</tr>
	
	
	
					
					
 				
 			<tr align="center">
						<td width="100" align="center"><B>
						${savedMsg}
						</B>
						</td>
						</tr>
							
 </form:form>
</table>
</body>
</html>